1: | le(0,Y) | → true | |
2: | le(s(X),0) | → false | |
3: | le(s(X),s(Y)) | → le(X,Y) | |
4: | minus(0,Y) | → 0 | |
5: | minus(s(X),Y) | → ifMinus(le(s(X),Y),s(X),Y) | |
6: | ifMinus(true,s(X),Y) | → 0 | |
7: | ifMinus(false,s(X),Y) | → s(minus(X,Y)) | |
8: | quot(0,s(Y)) | → 0 | |
9: | quot(s(X),s(Y)) | → s(quot(minus(X,Y),s(Y))) | |
10: | LE(s(X),s(Y)) | → LE(X,Y) | |
11: | MINUS(s(X),Y) | → IFMINUS(le(s(X),Y),s(X),Y) | |
12: | MINUS(s(X),Y) | → LE(s(X),Y) | |
13: | IFMINUS(false,s(X),Y) | → MINUS(X,Y) | |
14: | QUOT(s(X),s(Y)) | → QUOT(minus(X,Y),s(Y)) | |
15: | QUOT(s(X),s(Y)) | → MINUS(X,Y) | |